package br.com.absolutech.study.chapter7.pag333;

import java.util.ArrayList;
import java.util.List;
import javax.swing.JButton;

class Parent {
}
class Child extends Parent {
}

public class TestPoly {

	public static void main(String[] args) {

		Parent[] myArray = new Child[3]; //ok

		Object[] myArray2 = new JButton[3]; //ok

		List<Object> list = new ArrayList<JButton>(); //naaaao
	}
}
